package com.example.p24;

/**
 * @author Lenovo
 */
public class MainClass {
    public static void main(String[] args) {
        for (int counter =0;counter <= 10;counter++){
            System.out.printf(" %d!=%d\n",counter,factorial(counter));
        }
    }
    public static long factorial(long number){
        long result = 1;
        for (long i = 1; i <= number; i++){
            result *= i;
        }
        return result;
    }
}
